<?php

namespace App\Http\Resources;

use App\Http\Responses\Resource;

class Banner extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {

        return [
            'id' => $this->id,
            'banner_title' => $this->banner_title,
            'banner_url' => $this->banner_url,
            'link_url' => $this->link_url,
            'relation_type' => $this->relation_type,
            'relation_num' => $this->relation_num
        ];

    }
}
